package y2015.day_07.人类;

public class Person {
    String name;
    String gender;
    int age;

    public Person() {
        System.out.println("person()");

    }

    public Person(String name, String gender, int age) {
        System.out.println("Person(1,2,3)");
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public String toString() {
        return
                "\n姓名：" + name +
                        "\n性别：" + gender +
                        "\n年龄：" + age;

    }
}

